Skip to content

Conversation

@jamestalmage
Copy link
Contributor

Fixes #339.

To get the correct file and line number from SyntexErrors, we need to give up control of how they are logged to console (see #308 for a full discussion on why this is true).

The unfortunate side effect was that tests exercising our syntax errors

I was not sure this was worth it (it is a lot of code two fix the output from just two tests), but then I stumbled on this. There seem to be situations where a bad plan count, will not fail the tap test suite. Now I think this is probably worth the effort.

@sindresorhus
Copy link
Member

LGTM

test/cli.js Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use Test worker exited with ...

@jamestalmage
Copy link
Contributor Author

I just realized I could use get-stream here.

@jamestalmage jamestalmage force-pushed the hide-annoying-error-printouts branch from f21a99a to d7adff4 Compare December 29, 2015 12:37
test/cli.js Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moot now. remove.

@jamestalmage jamestalmage force-pushed the hide-annoying-error-printouts branch from d7adff4 to 6033e9c Compare December 29, 2015 12:39
@jamestalmage
Copy link
Contributor Author

OK, updated to use get-stream, removed concat-stream, and updated with @vdemedes suggested verbiage.

sindresorhus added a commit that referenced this pull request Dec 29, 2015
@sindresorhus sindresorhus merged commit b86dcc9 into avajs:master Dec 29, 2015
@jamestalmage jamestalmage deleted the hide-annoying-error-printouts branch April 6, 2016 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing test fixture

3 participants